package com.sdkj.Entity.sys;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sdkj.Entity.BaseEntity;

@Entity
@Table(name="sys_images")
public class Images extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String imgUrl;
	
	private int sortNo;
	private String imgAlt;
	private String imgHref;//点击图片跳转到的链接
	private String imgTitle;//鼠标移动到图片上显示的文字
	
	private String pid;//父亲id
	
	private int type;//图片类型 

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public void setSortNo(int sortNo) {
		this.sortNo = sortNo;
	}

	public void setImgAlt(String imgAlt) {
		this.imgAlt = imgAlt;
	}

	public void setImgHref(String imgHref) {
		this.imgHref = imgHref;
	}

	public void setType(int type) {
		this.type = type;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Column(length=100)
	public String getImgTitle() {
		return imgTitle;
	}

	public void setImgTitle(String imgTitle) {
		this.imgTitle = imgTitle;
	}

	@Column(length=100)
	public String getImgUrl() {
		return imgUrl;
	}
	@Column(length=10) 
	public int getSortNo() {
		return sortNo;
	} 
	@Column(length=100)
	public String getImgAlt() {
		return imgAlt;
	}
	@Column(length=100)
	public String getImgHref() {
		return imgHref;
	}
	@Column(length=10)
	public int getType() {
		return type;
	}
	
	@Column(length=36)
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Images() {
		super();
	}

	public Images(String uuid, Date createTime) {
		super(uuid, createTime);
	}

	public Images(String imgUrl, int sortNo, String imgAlt, String imgHref,
			int type) {
		super();
		this.imgUrl = imgUrl;
		this.sortNo = sortNo;
		this.imgAlt = imgAlt;
		this.imgHref = imgHref;
		this.type = type;
	}

	@Override
	public String toString() {
		return "Images [imgUrl=" + imgUrl + ", sortNo=" + sortNo + ", imgAlt="
				+ imgAlt + ", imgHref=" + imgHref + ", type=" + type + "]";
	}
	
}
